ibs
Class PasswordCheck
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
ibs.PasswordCheck
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class PasswordCheck
- extends javax.servlet.http.HttpServlet
Servlet implementation class for Servlet: verifies the password of the particular user.
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet: It internally calls the dopost method |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doPost : It checks the password of a particular user with the database |
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordCheck
public PasswordCheck()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
javax.servlet.ServletException
- doGet: It internally calls the dopost method
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Parameters:
req - : It carries the username and password of a particular userres - : It carries the response of the server which says whether password is matched or not
- Throws:
java.io.IOException
javax.servlet.ServletException- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
javax.servlet.ServletException
- doPost : It checks the password of a particular user with the database
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Parameters:
req - : It carries the username and password of a particular userres - : It carries the response of the server which says whether password is matched or not
- Throws:
java.io.IOException
javax.servlet.ServletException- See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)